import axios from 'axios'

const request = axios.create({
    baseURL: '/',
    timeout: 5000
})
// "n-token": "e16a9f76963a43278348d0410bcdb95b"
request.interceptors.request.use(function (config) {
    config.headers.Authorization = 'Bearer ' + localStorage.getItem("token")
    //             "Content-Type": "application/json",
    // config.headers["Content-Type"] = "application/json"
// "n-token":"e16a9f76963a43278348d0410bcdb95b"
    return config
})
export default request